package prototype;

public class Main {
    public static void main(String[] args) {
        House house=new House();
        house.setColor("white");
        Dog dog=new Dog();
        dog.setColor("black");
        dog.setName("jecy");
        dog.setType("hsq");
        house.setDog(dog);
        System.out.println("-----------");
        System.out.println(house);
        System.out.println("-----------clone-------");
        try {
            Object clone = house.clone();
            System.out.println(clone);
        } catch (CloneNotSupportedException e) {
            throw new RuntimeException(e);
        }
    }
}
